// svg
import SvgIcon from '@/components/SvgIcon/index.vue'

import Pagination from '@/components/Pagination/index.vue'
// 引入element-plus icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const allGloablComponent: any = { SvgIcon, Pagination }
export default {
  install(app: any) {
    Object.keys(allGloablComponent).forEach((key) => {
      app.component(key, allGloablComponent[key])
    })
    // element-plus icon图标注册为全局组件
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
